﻿ALTER TABLE [dbo].[TemplateInstanceComponents] ADD
CONSTRAINT [FK_TemplateInstanceComponents_TemplateInstances] FOREIGN KEY ([TemplateInstanceId]) REFERENCES [dbo].[TemplateInstances] ([InstanceId]) ON DELETE CASCADE


